/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 *
 * Hijacked and adoped by @qwtel. Learn more at
 * http://hydejack.github.io
 */

/* Icon font for github, twitter, etc */
@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 2rem 1rem;
  color: #c3c3c3;
  background-color: #202020 !important;
  text-align: left;
  width: 20rem;
  background-size: cover;
  background-position: center center;
  box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15) !important;
}
/* make sidebar slightly darker to increase text readability (when using a background image) */
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(32, 32, 32, .33);
}

/* Use larg desktop styles for mobile as well when the JS "drawer" is active */
.drawer > .sidebar {
  position: fixed;
  bottom: 0;
  top: 0;
  left: -20rem;
  width: 20rem;
  will-change: transform;
  box-shadow: 0.25rem 0 0.3rem rgba(0, 0, 0, 0.15)
}

.drawer > .sidebar::before {
  background: -moz-linear-gradient(bottom,  rgba(32,32,32,0) 0%, rgba(32,32,32,.5) 100%);
  background: -webkit-linear-gradient(bottom,  rgba(32,32,32,0) 0%,rgba(32,32,32,.5) 100%);
  background: linear-gradient(to bottom,  rgba(32,32,32,0) 0%,rgba(32,32,32,.5) 100%);
}

.drawer > .sidebar > .sidebar-sticky {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
}

#_backdrop {
  display: none;
}

.drawer > #_backdrop {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000;
  opacity: 0;
  z-index: 3;
  will-change: opacity;
  pointer-events: none;
}

.drawer-open {
  overflow: hidden;
}

.drawer-open > #_backdrop {
  pointer-events: all;
}


#_menu {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  color: #9a9a9a;
}

@media (min-width: 1200px) {
  .drawer > #_menu {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 22rem;
    /* Disable drawer positiioning on larger screens (already done via JS, but just to be sure) */
    transform: translate3d(0, 0, 0) !important;
  }
  .sidebar::before {
    background: linear-gradient(to bottom, rgba(32, 32, 32, 0) 0%, rgba(32, 32, 32, 0.5) 100%);
  }
}

/*.sidebar a:hover, .sidebar a:focus {
  text-decoration: none;
}*/

/* About section */
.sidebar-about > h1 {
  color: #fff;
  margin-top: 0;
  font-size: 2rem;
}
.sidebar-about img {
  height: 55px;
  width: auto;
  margin-left: -5px; /* 使標題與其他元素視覺上左對齊 */
  user-select: none;
}
.sidebar-about a {
  color: #c3c3c3 !important;
}
.sidebar-about a:hover {
  text-decoration: none;
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1.25rem;
}
.sidebar-nav-item {
  margin-bottom: 0.4rem;
}
.sidebar-nav-item > a {
  // display: inline-block;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  text-decoration: none;
  // border-bottom: 2px solid #c3c3c3;

	// 2020-08-28修改
	display: block;
	border: 1px solid rgba(239,239,239,0.4);
	border-radius: 5px;
	padding-left: 10px;
}

.sidebar-nav-item > a:hover {
  text-decoration: none;
  border: 1px solid rgba(239,239,239,0.8);
  border-bottom: 1px solid #fff;
}

.sidebar-nav-item > a.active {
  border-bottom: 2px solid #fff;
}

/* Disable the "white glow" that is used to make the laurel wreaths distinct form the background */
.sidebar a::after,
.sidebar a::before {
  text-shadow: none;
}

.sidebar-social {
  margin-bottom: 1.25rem;
}
.sidebar-social > a,
.sidebar-social > span {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.4rem;
  margin-right: 1rem;
  cursor: pointer;
}
.sidebar-social > a:last-child {
  margin-right: 0;
}
.sidebar-social > a:hover {
  text-decoration: none;
}

/* Enable z-index (derived from DOM structure) for the sidbar content. */
.container {
  position: relative;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */
@media (min-width: 1200px) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}

/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
  line-height: 1.7;

  /*
   * Ensure same content width when JS drawer is disabled.
   * Failing to do this caused text reflowing, when the JS kicked in (adding the .drawer styles)
   * and moved the drawer from the bottom to the side.
   * Now the drawer is placed above the 0.3rem border on the side.
   * It also looks kinda cool w/o the drawer.
   */
  // border-left: 0.3rem solid #fff;
}

@media (min-width: 800px) {
  .content {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}


@media (min-width: 1000px) {
  .content {
    margin-left: 4rem;
    margin-right: 4rem;
  }
}

@media (min-width: 1200px) {
  .content {
    max-width: 52rem;
    margin-left: 25rem;
    margin-right: 4rem;
  }
}

@media (min-width: 1400px) {
  .content {
    max-width: 54rem;
    margin-left: 25rem;
    margin-right: 4rem;
  }
  .sidebar {
    width: 22rem;
  }
}

@media (min-width: 1600px) {
  .content {
    max-width: 56rem;
    margin-left: 27rem;
    margin-right: 4rem;
  }
  .sidebar {
    width: 24rem;
  }
}

// 1920的屏幕
@media (min-width: 1800px) {
  .content {
    max-width: 62rem;
    margin-left: 27rem;
    margin-right: 4rem;
  }
  .sidebar {
    width: 24rem;
  }
}

// 2048的屏幕
@media (min-width: 2000px) {
  .content {
    max-width: 74rem;
    margin-left: 27rem;
    margin-right: 4rem;
  }
  .sidebar {
    width: 24rem;
  }
}

/* Override pool styles that are specific to this theme */

.related-posts li a {
  font-weight: normal;
}

/* Icon font styles */
[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* "Better" Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon.icon-dark-mode::before {
  content: "\e9d5";
}
.icon.icon-calendar::before {
  content: "\e953";
}
.icon.icon-github::before {
  content: "\eab0";
}
.icon.icon-linkedin::before {
  content: "\eaca";
}
.icon.icon-weibo::before {
  content: "\ea9a";
}
.icon.icon-rss::before {
  content: "\ea9c";
}
.icon.icon-facebook::before {
  content: "\ea91";
}
.icon.icon-google-plus::before {
  content: "\ea8b";
}
.icon.icon-instagram::before {
  content: "\ea92";
}
.icon.icon-dribbble::before {
  content: "\eaa7";
}

.icon.icon-rss,
.icon.icon-dark-mode,
.icon.icon-facebook {
  font-size: 0.95em;
}

.me {
    width: 6.5rem;
    margin-top: -4.8rem;
    margin-left: 1rem;
    border-radius: 100%;
    position: relative;
    z-index: 2;
    float: right;
}


/*
 * Print Styles (by Yanbin Ma)
 *
 * - Hide Sidebar elements
 * - Use serif font family
 */
@media print {
  @page {
    margin: 2cm;
    size: A4;
  }
  html {
    font-family: "PT Serif", Georgia, "STSongti", "STZhongsong", "SimSun", serif;
    font-size: 14pt;
  }
  #_sidebar, #_menu {
    display: none;
  }
  .container {
    max-width: 100%;
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .content .message {
    border: 1px solid;
  }
  .content hr {
    visibility: hidden;
  }
  .content h2 {
    orphans: 2;
    widows: 2;
  }
  .content pre {
    white-space: pre-line;
    border-top: 1px solid;
    border-bottom: 1px solid;
  }
  .content p:not(.lead) {
    text-indent: 2em;
    margin-bottom: 0.6em;
  }
  .content blockquote p {
    text-indent: 0;
  }
  // To force this heading to always be the beginning of a page
  h1 {
    page-break-before: always;
  }
}
